package com.rfsp.demo.pojo.dto;


import java.util.Date;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotEmpty;
import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.rfsp.common.base.BaseDTO;

public class DemoDTO extends BaseDTO {
	
	@NotEmpty(message = "用户名不能为空")
    @Length(message = "用户名长度6-8个字符 ", min = 6, max = 8)
    String username;
	
	@NotEmpty(message = "密码不能为空")
	@Length(message = "密码长度6-8字符", min = 6, max = 8)
    String password;
	
	
	String demotype="1";
	
	@JsonFormat(timezone = "GMT+8",pattern="yyyy-MM-dd")
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	Date beginTime = new Date();
	String endTime = "2030-01-28";
	
	
	String province="120000";
	String city="120100";
	String country="120104";

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getCountry() {
		return country;
	}

	public void setCountry(String country) {
		this.country = country;
	}

	public String getDemotype() {
		return demotype;
	}

	public void setDemotype(String demotype) {
		this.demotype = demotype;
	}

	public Date getBeginTime() {
		return beginTime;
	}

	public void setBeginTime(Date beginTime) {
		this.beginTime = beginTime;
	}

	public String getEndTime() {
		return endTime;
	}

	public void setEndTime(String endTime) {
		this.endTime = endTime;
	}
	
	
	
}
